home *** CD-ROM | disk | FTP | other *** search
/ Champak 52 / Volume 52 - JOGO DISK .iso / Games / sandwichcooking.swf / scripts / DefineButton2_474 / BUTTONCONDACTION on(release).as < prev    next >
Text File  |  2007-09-27  |  553b  |  26 lines

  1. on(release){
  2.    this.stopDrag();
  3.    this.gotoAndStop(1);
  4.    if(_root.chr._currentframe == 1)
  5.    {
  6.       _root.txtX._visible = true;
  7.       _root.txtX.play();
  8.       _root.chr.gotoAndPlay(11);
  9.       this._x = targetX;
  10.       this._y = targetY;
  11.    }
  12.    else if(this.hitTest(_root.chr.idrop))
  13.    {
  14.       _root.chr.subbread2._visible = true;
  15.       this._x = targetX;
  16.       this._y = targetY;
  17.       this._visible = false;
  18.       this._parent.sb._visible = true;
  19.    }
  20.    else
  21.    {
  22.       this._x = targetX;
  23.       this._y = targetY;
  24.    }
  25. }
  26.